Optimal. Leaf size=130 \[ -\frac {a (b B-a D) x}{b^3}+\frac {(A b-a C) x^2}{2 b^2}+\frac {(b B-a D) x^3}{3 b^2}+\frac {C x^4}{4 b}+\frac {D x^5}{5 b}+\frac {a^{3/2} (b B-a D) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{7/2}}-\frac {a (A b-a C) \log \left (a+b x^2\right )}{2 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.09, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {1816, 649, 211,
266} \begin {gather*} \frac {a^{3/2} \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) (b B-a D)}{b^{7/2}}-\frac {a (A b-a C) \log \left (a+b x^2\right )}{2 b^3}+\frac {x^2 (A b-a C)}{2 b^2}-\frac {a x (b B-a D)}{b^3}+\frac {x^3 (b B-a D)}{3 b^2}+\frac {C x^4}{4 b}+\frac {D x^5}{5 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 266
Rule 649
Rule 1816
Rubi steps
\begin {align*} \int \frac {x^3 \left (A+B x+C x^2+D x^3\right )}{a+b x^2} \, dx &=\int \left (-\frac {a (b B-a D)}{b^3}+\frac {(A b-a C) x}{b^2}+\frac {(b B-a D) x^2}{b^2}+\frac {C x^3}{b}+\frac {D x^4}{b}+\frac {a^2 (b B-a D)-a b (A b-a C) x}{b^3 \left (a+b x^2\right )}\right ) \, dx\\ &=-\frac {a (b B-a D) x}{b^3}+\frac {(A b-a C) x^2}{2 b^2}+\frac {(b B-a D) x^3}{3 b^2}+\frac {C x^4}{4 b}+\frac {D x^5}{5 b}+\frac {\int \frac {a^2 (b B-a D)-a b (A b-a C) x}{a+b x^2} \, dx}{b^3}\\ &=-\frac {a (b B-a D) x}{b^3}+\frac {(A b-a C) x^2}{2 b^2}+\frac {(b B-a D) x^3}{3 b^2}+\frac {C x^4}{4 b}+\frac {D x^5}{5 b}-\frac {(a (A b-a C)) \int \frac {x}{a+b x^2} \, dx}{b^2}+\frac {\left (a^2 (b B-a D)\right ) \int \frac {1}{a+b x^2} \, dx}{b^3}\\ &=-\frac {a (b B-a D) x}{b^3}+\frac {(A b-a C) x^2}{2 b^2}+\frac {(b B-a D) x^3}{3 b^2}+\frac {C x^4}{4 b}+\frac {D x^5}{5 b}+\frac {a^{3/2} (b B-a D) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{7/2}}-\frac {a (A b-a C) \log \left (a+b x^2\right )}{2 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 114, normalized size = 0.88 \begin {gather*} -\frac {a^{3/2} (-b B+a D) \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{b^{7/2}}+\frac {x \left (60 a^2 D-10 a b (6 B+x (3 C+2 D x))+b^2 x (30 A+x (20 B+3 x (5 C+4 D x)))\right )+30 a (-A b+a C) \log \left (a+b x^2\right )}{60 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.10, size = 128, normalized size = 0.98
method | result | size |
default | \(\frac {\frac {1}{5} b^{2} D x^{5}+\frac {1}{4} b^{2} C \,x^{4}+\frac {1}{3} b^{2} B \,x^{3}-\frac {1}{3} D a b \,x^{3}+\frac {1}{2} A \,b^{2} x^{2}-\frac {1}{2} C a b \,x^{2}-a b B x +a^{2} D x}{b^{3}}-\frac {a \left (\frac {\left (b^{2} A -a b C \right ) \ln \left (b \,x^{2}+a \right )}{2 b}+\frac {\left (-a b B +a^{2} D\right ) \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b}}\right )}{b^{3}}\) | \(128\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 127, normalized size = 0.98 \begin {gather*} \frac {{\left (C a^{2} - A a b\right )} \log \left (b x^{2} + a\right )}{2 \, b^{3}} - \frac {{\left (D a^{3} - B a^{2} b\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{3}} + \frac {12 \, D b^{2} x^{5} + 15 \, C b^{2} x^{4} - 20 \, {\left (D a b - B b^{2}\right )} x^{3} - 30 \, {\left (C a b - A b^{2}\right )} x^{2} + 60 \, {\left (D a^{2} - B a b\right )} x}{60 \, b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 7.66, size = 270, normalized size = 2.08 \begin {gather*} \left [\frac {12 \, D b^{2} x^{5} + 15 \, C b^{2} x^{4} - 20 \, {\left (D a b - B b^{2}\right )} x^{3} - 30 \, {\left (C a b - A b^{2}\right )} x^{2} + 30 \, {\left (D a^{2} - B a b\right )} \sqrt {-\frac {a}{b}} \log \left (\frac {b x^{2} - 2 \, b x \sqrt {-\frac {a}{b}} - a}{b x^{2} + a}\right ) + 60 \, {\left (D a^{2} - B a b\right )} x + 30 \, {\left (C a^{2} - A a b\right )} \log \left (b x^{2} + a\right )}{60 \, b^{3}}, \frac {12 \, D b^{2} x^{5} + 15 \, C b^{2} x^{4} - 20 \, {\left (D a b - B b^{2}\right )} x^{3} - 30 \, {\left (C a b - A b^{2}\right )} x^{2} - 60 \, {\left (D a^{2} - B a b\right )} \sqrt {\frac {a}{b}} \arctan \left (\frac {b x \sqrt {\frac {a}{b}}}{a}\right ) + 60 \, {\left (D a^{2} - B a b\right )} x + 30 \, {\left (C a^{2} - A a b\right )} \log \left (b x^{2} + a\right )}{60 \, b^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 274 vs.
\(2 (116) = 232\).
time = 0.53, size = 274, normalized size = 2.11 \begin {gather*} \frac {C x^{4}}{4 b} + \frac {D x^{5}}{5 b} + x^{3} \left (\frac {B}{3 b} - \frac {D a}{3 b^{2}}\right ) + x^{2} \left (\frac {A}{2 b} - \frac {C a}{2 b^{2}}\right ) + x \left (- \frac {B a}{b^{2}} + \frac {D a^{2}}{b^{3}}\right ) + \left (\frac {a \left (- A b + C a\right )}{2 b^{3}} - \frac {\sqrt {- a^{3} b^{7}} \left (- B b + D a\right )}{2 b^{7}}\right ) \log {\left (x + \frac {- A a b + C a^{2} - 2 b^{3} \left (\frac {a \left (- A b + C a\right )}{2 b^{3}} - \frac {\sqrt {- a^{3} b^{7}} \left (- B b + D a\right )}{2 b^{7}}\right )}{- B a b + D a^{2}} \right )} + \left (\frac {a \left (- A b + C a\right )}{2 b^{3}} + \frac {\sqrt {- a^{3} b^{7}} \left (- B b + D a\right )}{2 b^{7}}\right ) \log {\left (x + \frac {- A a b + C a^{2} - 2 b^{3} \left (\frac {a \left (- A b + C a\right )}{2 b^{3}} + \frac {\sqrt {- a^{3} b^{7}} \left (- B b + D a\right )}{2 b^{7}}\right )}{- B a b + D a^{2}} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.77, size = 137, normalized size = 1.05 \begin {gather*} \frac {{\left (C a^{2} - A a b\right )} \log \left (b x^{2} + a\right )}{2 \, b^{3}} - \frac {{\left (D a^{3} - B a^{2} b\right )} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{\sqrt {a b} b^{3}} + \frac {12 \, D b^{4} x^{5} + 15 \, C b^{4} x^{4} - 20 \, D a b^{3} x^{3} + 20 \, B b^{4} x^{3} - 30 \, C a b^{3} x^{2} + 30 \, A b^{4} x^{2} + 60 \, D a^{2} b^{2} x - 60 \, B a b^{3} x}{60 \, b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^3\,\left (A+B\,x+C\,x^2+x^3\,D\right )}{b\,x^2+a} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________